<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>对象的属性</title>
</head>
<body>
  <script>
    var obj = {
      a: '吃饭',
      b: '睡觉',
      c: '喝水'
    }
    obj.d = '玩游戏'
    console.log('obj', obj)
  </script>
</body>
</html>